package com.mall.controller;


import com.mall.pojo.OmsCompanyAddress;
import com.mall.service.OmsCompanyAddressService;
import com.mall.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/companyAddress")
public class OmsCompanyAddressController {
    @Autowired
    private OmsCompanyAddressService omsCompanyAddressService;


    @GetMapping("/list")
    public Result<List<OmsCompanyAddress>> listCompanyAddress(){
        //调用方法
      List<OmsCompanyAddress> ocAs =  omsCompanyAddressService.findlistCompanyAddress();

      return Result.success(ocAs,"操作成功");

    }


}
